﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace ActivitiesControl.GUI.Silverlight.Utils
{
	public static class Message
	{
		public static void Show(string message)
		{
			Main.Instance.ShowMessage(message);
		}

		public static void Show(string message, AsyncCompletedEventArgs e)
		{
			if (e.Error != null)
				Show(string.Format("Ocorreu um erro nesta operação ({0}).", e.Error.Message));
			else
				Show(message);
		}
	}
}
